package mn.buya;

import java.util.ArrayList;
import java.util.List;

/**
 * Өгөгдлийн сантай харицагч
 * 
 * @author buyanzaya
 * 
 */
public class DBAdapter {

	// Асуулт
	private String sQuestion;
	// Хариулт
	private List<String> lAnswer = new ArrayList<String>();
	// Бусад үгнүүд
	private List<String> lRawWords = new ArrayList<String>();

	public DBAdapter() {

		String sQuestion = "Англи хэлэнд гишүүн өгүүлбэр нь өгүүлбэр бус дүйх зүйлийхээ ижил газарт дандаа ордоггүй.";
		String sAnswer = "In English, a clause is not always located at the same place as its non clause equivalent.";
		String sRawWords = "In English, a clause is not always located at the same place as its non clause equivalent book power lock drink class pen mouse htc cap computer put hear cold gold samsung";

		this.sQuestion = sQuestion;

		for (String sWord : sAnswer.split(" ")) {
			lAnswer.add(sWord);
		}
		for (String sWord : sRawWords.split(" ")) {
			lRawWords.add(sWord);
		}
	}

	public String getQuestion() {
		return sQuestion;
	}

	public void setQuestion(String sQuestion) {
		this.sQuestion = sQuestion;
	}

	public List<String> getAnswer() {
		return lAnswer;
	}

	public void setAnswer(List<String> sAnswer) {
		this.lAnswer = sAnswer;
	}

	public List<String> getRawWords() {
		return lRawWords;
	}

	public void setRawWords(List<String> lRawWords) {
		this.lRawWords = lRawWords;
	}

}